define(function(require){

	
	require("jquery");
	var s = {};
	var appInfo = require('app/AppInfo');
	var c = require('app/utils/CommonUtils');

	var photoBrowser = api.require('photoBrowser');
	
	s.open = function(imgurl){
		c.l(imgurl);
		photoBrowser.open({
		    images: [
		    	imgurl
		    ],
		    placeholderImg: 'widget://image/picture_loading.png',
		    bgColor: '#000'
		}, function(ret, err) {
		
			if(ret.eventType == "click"){
				photoBrowser.close();
			}
		   
		});
	}
	
	return s;
});